package com.sdy.dao.mysql;

import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CompanyMapper {



    /**
     * 根据id查询公司名称
     * @param id
     * @return
     */
    @Select("select name from s_company where id = #{id}")
    String getCompanyNameById(@Param("id") Integer id);

    @Select("select id from s_user where companyId = #{companyId}")
    List<Integer> listUserIdByCompanyId(@Param("companyId") Integer companyId);

}
